import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 评论列表分页查询
export const findCommontInfoListPage = query => {
    return request({
        url: baseRequest_url+'/admin/commont/findCommontInfoListPage',
        method: 'get',
		params: query,
    });
};
// 评论详情查询
export const findCommontInfoListByDataID = query => {
    return request({
        url: baseRequest_url+'/admin/commont/findCommontInfoListByDataID/'+query,
        method: 'get',
		params: query,
    });
};
// 新增评论
export const addCommontInfo = data => {
    return request({
        url: baseRequest_url+'/admin/commont/saveCommontInfo',
        method: 'post',
		data: data,
    });
};
// 编辑评论
export const saveCommontInfo = data => {
    return request({
        url: baseRequest_url+'/admin/commont/saveCommontInfo',
        method: 'put',
		data: data,
    });
};
// 删除评论
export const deleteCommontInfoById = data => {
    return request({
        url: baseRequest_url+'/admin/commont/deleteCommontInfoById/'+data,
        method: 'delete',
    });
};
// 批量更新评论显示状态
export const batchEditIsShow = data => {
    return request({
        url: baseRequest_url+'/admin/commont/batchEditIsShow',
        method: 'put',
		data: data,
    });
};
